package com.drg.center.entity.result;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.guaike.core.entity.annotation.EnumConvert;
import com.guaike.core.entity.annotation.IsEnumValue;
import com.guaike.core.entity.enums.DataPermissonTypeEnum;
import com.guaike.core.entity.enums.YNEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Author: zhangxilin
 * @Date: 2024/4/23
 */
@ApiModel("岗位信息VO")
@Data
public class SysPositionVO implements Serializable {

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("岗位名称")
    private String position;

    @ApiModelProperty("数据权限规则(字典码:10004)")
    @EnumConvert(clazz = DataPermissonTypeEnum.class, from = "code", to= "description")
    private Integer scopeType;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("是否领导岗位(字典码:10000)")
    private Boolean isLeader;


    @ApiModelProperty("创建时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private LocalDateTime createTime;

}
